cssprovider: Use right hash table when printing
authorBenjamin Otte <otte@redhat.com>
Mon, 23 May 2011 05:01:14 +0000 (07:01 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 23 May 2011 13:56:09 +0000 (15:56 +0200)
If the CSS provider had widget style properties, printing them would
crash since 82b340f6f005a7d2b70d9aa7febb8612a53d0eda

gtk/gtkcssprovider.c

index 501d2839238e1074529c1e4d03f291bbdd79edef..2be10391711115030af2b04158c6c1e4fd62a5f1 100644 (file)
@@ -3004,7 +3004,7 @@ gtk_css_ruleset_print (const GtkCssRuleset *ruleset,
       for (walk = keys; walk; walk = walk->next)
         {
           const char *name = walk->data;
-          const GValue *value = g_hash_table_lookup (ruleset->style, (gpointer) name);
+          const GValue *value = g_hash_table_lookup (ruleset->widget_style, (gpointer) name);
 
           g_string_append (str, "  ");
           g_string_append (str, name);